package com.ohos.connect.devicecloud.app.modular.projectdevice.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * APP项目设备实体
 *
 * @author Dongtao
 * @date  2024/12/05 11:08
 **/
@Getter
@Setter
@TableName("APP_PROJECT_DEVICE")
public class ProjectDevice {

    /** ID */
    @TableId
    @ApiModelProperty(value = "ID", position = 1)
    private String id;

    /** 项目ID */
    @ApiModelProperty(value = "项目ID", position = 2)
    private String projectId;

    /** 设备ID */
    @ApiModelProperty(value = "设备ID", position = 3)
    private String deviceId;

    /** 设备排序号 */
    @ApiModelProperty(value = "设备排序号", position = 3)
    private Integer sortCode;

    /** 删除标志 */
    @ApiModelProperty(value = "删除标志", position = 4)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String deleteFlag;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 5)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 创建用户 */
    @ApiModelProperty(value = "创建用户", position = 6)
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间", position = 7)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 修改用户 */
    @ApiModelProperty(value = "修改用户", position = 8)
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;
}
